import { defineStore } from 'pinia';
export  const cwMessage = defineStore('cw_message', {
  state: () => ({
    number: 0,
    cwMessage:false
  }),
  getters:{
    doubleNumber:(state)=> state.number * 2
  },
  actions:{
    increment(){
        this.number++
    },
    showMessage(value){
      this.cwMessage = true
    },
    closeMessage(){
      this.cwMessage = false
    }
  }
});

